<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>我买到的</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
<h2>我的购买记录</h2>
<table border="1">
    <thead>
    <tr>
        <th>商品名称</th>
        <th>数量</th>
        <th>价格</th>
        <th>购买时间</th>
    </tr>
    </thead>
    <tbody>
    {{range .orders}}
    <tr>
        <td>{{.Shopname}}</td>
        <td>{{.Number}}</td>
        <td>¥{{.Money}}</td>
        <td>{{.Shoppingtime}}</td>
    </tr>
    {{end}}
    </tbody>
</table>
</body>
</html>
